﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents;
using DevExpress.XtraEditors;

namespace ProgNetComponentsDx
{
    public class SingleAppRunnerDx : SingleAppRunner
    {
        public SingleAppRunnerDx() :
            base() { }

        protected override System.Windows.Forms.DialogResult ShowQuestionDlg()
        {
            return XtraMessageBox.Show(Message, System.Windows.Forms.Application.ProductName, System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question);
        }
        public virtual void Run(System.Windows.Forms.Form mainForm, Forms.BaseInitForm initForm)
        {
            if (!_IsStarted)
                Start();
            initForm.ShowDialog();
            Run(mainForm);
        }
    }
}
